[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
getpsp() Get the Program Segment Prefix
#include <dos.h>
unsigned getpsp(void);
getpsp() uses the MS-DOS system call 0x62 in versions 3.0 and later
to get the segment address of the program segment prefix.
Returns: The segment value of the PSP.
Notes: For versions of MS-DOS prior to 3.0, use the global
variable '_psp' set by the startup code.
Portability: MS-DOS 3.0 and later only.
-------------------------------- Example ---------------------------------
The following statement gets the program segment prefix.
#include <dos.h> /* for getpsp */
main()
{
unsigned psp;
psp = getpsp();
}
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson